package io.renren.modules.app.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.app.entity.BsBookEntity;
import io.renren.modules.app.entity.BsBorrcertificateEntity;
import io.renren.modules.app.entity.BsBorrinformEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 借阅信息表
 *
 * @author zwl
 * @email ${email}
 * @date 2024-01-02 14:08:32
 */
@Mapper
public interface BsBorrinformDao extends BaseMapper<BsBorrinformEntity> {

    BsBookEntity queryinformbooknum(@Param("informbooknum") String informbooknum);

    BsBorrcertificateEntity queryinformcertnum(@Param("informcertnum") String informcertnum);

    int updateBook(@Param("informbooknum") String informbooknum,@Param("bookstock") Integer bookstock);

    List<BsBookEntity> queryidByBookName(@Param("bookname") String bookname);

    List<BsBorrcertificateEntity> queryidByCertName(@Param("certname") String certname);
}
